package o;
import java.util.List;
import java.util.Map;

public final class CollectCheck {
    public static <V> boolean isEmpty(List<V> list) {
        return list == null || list.isEmpty();
    }

    public static <V, K> boolean isEmpty(Map<V, K> map) {
        return map == null || map.isEmpty();
    }

    public static <V> boolean equal(List<V> list, List<V> list2) {
        boolean z = true;
        if (list == null) {
            if (list2 != null) {
                z = false;
            }
            return z;
        } else if (list2 == null || list.size() != list2.size()) {
            return false;
        } else {
            for (int i = 0; i < list.size(); i++) {
                if (!Object.equal(list.get(i), list2.get(i))) {
                    return false;
                }
            }
            return true;
        }
    }
}
